//
//  TBTotalHeadView.m
//  SafeFoodManagerDemo
//
//  Created by bob on 2017/11/14.
//  Copyright © 2017年 bob. All rights reserved.
//

#import "TBTotalHeadView.h"

@interface TBTotalHeadView()

@property(nonatomic,strong)UILabel *tipLabel;

@end

@implementation TBTotalHeadView


-(instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier
{
    if (self=[super initWithReuseIdentifier:reuseIdentifier]) {
        
        self.tipLabel=[[UILabel alloc]initWithFrame:CGRectMake(15, 10, SCREEN_WIDTH-30, 21)];
        
        self.tipLabel.textColor=TBColorProvideBtnbg;
        
        self.tipLabel.font=[UIFont systemFontOfSize:17];
        
        self.tipLabel.textAlignment=NSTextAlignmentCenter;
        
        self.backgroundColor=[UIColor whiteColor];
        
        [self addSubview:self.tipLabel];
  
    }
    
    return self;
    
}


-(void)setTipStr:(NSString *)tipStr
{
    _tipStr=tipStr;
    
    self.tipLabel.text=tipStr;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
